package user

import (
	"github.com/gin-gonic/gin"
)

func RegisterRouter(r *gin.Engine) {
	r.POST("/login", Login)
	userG := r.Group("/user")
	{
		userG.POST("/add", AddUser)
		userG.GET("/users", GetUsers)
		userG.GET("/user/:id", GetUser)
		userG.PUT("/user", UpdateUser)
		userG.PUT("/user/meta", UpdateUserMeta)
		userG.GET("/test", test)
	}

}
